package com.epfresh.views;

import android.content.Context;
import android.support.v4.view.ViewPager;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.widget.ListView;

/**
 * Created by zhaozhenqiang on 2017/3/23.
 */


public class NoScrollViewPage extends ViewPager {
    public NoScrollViewPage(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public NoScrollViewPage(Context context) {
        super(context);
    }

    @Override
    public boolean onTouchEvent(MotionEvent ev) {
        // 重写此方法, 触摸时什么都不做, 从而实现对滑动事件的禁用
        return true;
    }
/*    @Override
    public void scrollTo(int x, int y){
*//*        if (isCanScroll){
            super.scrollTo(x, y);
        }*//*
    }*/

}